package com.MuApk.box;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import android.content.Intent;

public class MainActivity extends Activity {
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
		/*启动暗码服务，md闪退，爷不写了
		Intent intent =new Intent(this, SecretCodeReceiver.class);
        startService(intent);*/
    }
    public void activitymainButton1(View view){
        EditText mmk=findViewById(R.id.bjk);
        String wb=mmk.getText().toString();
        int pwd=114514;
        int wb2 =Integer.parseInt(wb);
        if(wb2==pwd){
            startActivity(new Intent(this,LockActivity.class));
			finish();
        }else{
            Toast.makeText(this, "Wrong Password!", Toast.LENGTH_SHORT).show();
        }
    }
}
